<template>
  <div v-html="value"></div>
</template>

<script>
export default {
  data() {
    return {
      value: "",
    };
  },
  mounted() {
    this.$bus.$on("ren", (input) => {
      this.value = marked(input);
      console.log(this);
    });
  },
};
</script>

<style scoped>
div {
  height: 200px;
  width: 500px;
  box-sizing: border-box;
  border: 1px solid black;
  background-color: rgba(255, 255, 0, 0.055);
}
</style>
